/*
题目链接:https://leetcode.cn/problems/minimize-string-length/description/?envType=daily-question&envId=2025-03-28
*/
//题解代码:
class Solution {
public:
    int minimizedStringLength(string s) {
        unordered_set<char> ust;
        for(auto& c : s) ust.insert(c);
        return ust.size();
    }
};
